import axios from 'axios'

const meals = {
    getAllMeal() {
        return axios({
            url: '/meal/getAllMeal'
        })
    },
    add(data) {
        return axios({
            url: '/meal/addMeal',
            method: 'POST',
            data
        })
    },
    update(data) {
        return axios({
            url: '/meal/updateMeal',
            method: 'POST',
            data
        })
    },
    del(data) {
        return axios({
            url: '/meal/delMeal',
            method: 'POST',
            data
        })
    }
}

export default meals;